package com.extension.company.contract.cart;

import com.extension.company.common.mvp.IModel;
import com.extension.company.common.mvp.IView;
import com.extension.company.model.entity.CarShopBean;
import com.extension.company.model.entity.ShopCarData;

import java.util.List;

/**
 * 作者：zwk
 * 时间：on 2019/3/27 15:49
 * 功能：购物车Contract
 */
public interface FragmentCartContract {

	interface Mode extends IModel {
		void carPayment(String goods_info); // 支付的商品id  34-57-2/53-69_66-2（商品ID-规格sku-数量/商品ID-规格sku-数量）

		void carShopList(ShopListCallBack callBack);// 获取购物车的清单
	}

	interface View extends IView {
		void shopCarSuccess(List<ShopCarData> list);

	}

	interface ShopListCallBack { // 获取商品的回调
		void shopCarM2P(List<CarShopBean.DataBean> shopListBean);
	}

}
